package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuw
 * @since 2019-08-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAZ_T")
public class GwazT extends PO<GwazT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAZENT", type = IdType.INPUT)
    private String GWAZENT;

    private String GWAZLEGAL;

    private String GWAZ001;

    private String GWAZ002;

    private String GWAZ003;

    private String GWAZ004;

    private String GWAZ005;

    private String GWAZACTI;

    @TableField(fill = FieldFill.INSERT)
    private String GWAZUSER;

    @TableField(fill = FieldFill.INSERT)
    private String GWAZGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String GWAZMODU;

    @TableField(fill = FieldFill.INSERT)
    private String GWAZTIME;
    
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWAZDATE;

    @TableField(fill = FieldFill.INSERT)
    private String GWAZORIG;

    @TableField(fill = FieldFill.INSERT)
    private String GWAZORIU;



    @Override
    protected Serializable pkVal() {
        return this.GWAZENT;
    }

}
